﻿<navigation:Page x:Class="PicturePortfolio.Silverlight.Views.PortfolioContainerView" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
           xmlns:ca="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"                 
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:tl="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="PortfolioContainerView Page">
    <Grid x:Name="LayoutRoot" Background="Black">
        <Grid.RowDefinitions>
            <RowDefinition Height="35"></RowDefinition>
            <RowDefinition></RowDefinition>
            <RowDefinition Height="20"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" Text="Sony Arouje" FontFamily="Comic Sans MS" FontSize="24" Foreground="Gray"></TextBlock>
        <Image x:Name="UploadImage" Grid.Row="0" HorizontalAlignment="Right" Visibility="{Binding IsShowAdminFunctionality}" Height="30" Width="30" Source="/Earth-Upload-icon.png" Margin="0,0,20,0">
            <i:Interaction.Triggers>
                <i:EventTrigger EventName="MouseLeftButtonUp">
                    <ca:ActionMessage MethodName="UploadImage">

                    </ca:ActionMessage>
                </i:EventTrigger>
            </i:Interaction.Triggers>
        </Image>
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="160"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <tl:TransitioningContentControl Grid.Column="0" BorderBrush="Black" BorderThickness="2" Background="Gray"  x:Name="Activescreen" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" />
            <StackPanel Grid.Column="1" Orientation="Vertical">
                <HyperlinkButton x:Name="ShowAllImage" Content="Show All" HorizontalAlignment="Center"></HyperlinkButton>
                <ContentControl x:Name="CategoriesView" Width="150"   Background="Transparent" HorizontalAlignment="Right"></ContentControl>
                <HyperlinkButton x:Name="CreateNewCategory" Content="Add/Edit Category" Visibility="{Binding IsShowAdminFunctionality}" HorizontalAlignment="Center"></HyperlinkButton>
            </StackPanel>
        </Grid>
        <!--<Button x:Name="UploadImage" Grid.Row="2" Height="40" Width="100" Content="Upload Image"></Button>-->
        <!--<Popup x:Name="preivewImagePopup" VerticalOffset="75" HorizontalOffset="25" IsOpen="True">
            <tl:TransitioningContentControl Grid.Row="1" BorderBrush="Black" BorderThickness="2" Background="Gray"  x:Name="PreviewImage" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" />
        </Popup>-->
        <!--<ContentControl BorderBrush="Red" BorderThickness="10"   x:Name="Activescreen" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0" ></ContentControl>-->
    </Grid>
</navigation:Page>
